package com.rd.server.modules.room.model;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName RoomUsersPO
 * @Description 房间用户列表
 * @Author zyy
 * @Date 2025/6/6 22:19
 * @Version 1.0
 **/
@Data
@Table("t_room_users")
public class RoomUsersPO {

    /**
     * ID
     */
    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    private String id;
    /**
     * 房间ID
     */
    private String roomId;
    /**
     * 用户ID
     */
    private String userId;;
    /**
     * 用户头像
     */
    private String avatar;
    /**
     * 昵称
     */
    private String nickname;
    /**
     * 用户在房间中的实时金额
     */
    private BigDecimal currentAmount;
    /**
     * 创建时间
     */
    private Date createdAt;

}
